/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.configuration.dao;

import javacommon.base.BaseIbatis3Dao;

/**
 * @author cty email:seal100x@163.com
 * @version 1.0
 * @since 1.0
 */
import org.springframework.stereotype.Repository;

import javacommon.page.Page;

import com.sjyy.configuration.model.Configuration;
import com.sjyy.configuration.vo.query.ConfigurationQuery;


@Repository
public class ConfigurationDao extends BaseIbatis3Dao<Configuration,ConfigurationQuery,java.lang.Integer>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "Configuration";
	}
	
	public void saveOrUpdate(Configuration entity) {
		if(entity.getId() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(ConfigurationQuery query) {
		return pageQuery("Configuration.findPage",query);
	}
	

}
